<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话: 520520 (点击拨打)</view>
			<view>联系地址: 广东省广州市荔湾区的某一处宝地</view>
		</view>
		<!-- 插入地图组件，设置中心经度与纬度，缩放级别，标记点 -->
		<map class="map" :longitude="longitude" :latitude="latitude" :scale="scale" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 113.220102,
				latitude: 23.120845,
				scale: 15,
				markers:[
					{
						longitude: 113.225028,
						latitude: 23.115122,
						iconPath: '../../static/logo.png',
						width: 50,
						height: 50
					}
				]
			}
		},
		methods: {
			phone () {
				uni.makePhoneCall({
					phoneNumber: "13268089583"
				})
			}
		}
	}
</script>

<style lang="scss">
.contact {
	.img {
		width: 750rpx;
		height: 320rpx;
	}
	.info{
		padding: 10rpx 20rpx;
		font-size: 30rpx;
		view{
			line-height: 80rpx;
			border-bottom: 1px solid #eee;
		}
	}
	.map{
		width: 750rpx;
		height: 750rpx;
	}
}
</style>
